

	void drawResults()
	{
		int width;
		int height;
		int maxArmies;
		
		cGame_g.setFont(DGraph.FONT_SMALL);
		
		if(!conqueredCountry)
		{
			width = cGame_g.getStringWidth(TEXT.INGAME_RESULTS_RESULT_FOR + tegCountries[cCountry.selectedCountry].name + " VS. " + tegCountries[cCountry.defendingCountry].name) + cGame_g.getFontWidth() * 2;
			height = (((attackingDices.length < defendingDices.length)? defendingDices.length : attackingDices.length) * SPRITES.DICE_MODULE_H) + (2 * ((attackingDices.length > defendingDices.length)? defendingDices.length : attackingDices.length)) + cGame_g.getFontHeight() * 4;
		}		
		else
		{
			if(cGame_g.getStringWidth(TEXT.INGAME_RESULTS_RESULT_FOR + tegCountries[cCountry.selectedCountry].name + " VS. " + tegCountries[cCountry.defendingCountry].name) < cGame_g.getStringWidth(TEXT.INGAME_RESULTS_HOW_MANY))
				width = cGame_g.getStringWidth(TEXT.INGAME_RESULTS_HOW_MANY) + cGame_g.getFontWidth() * 4;
			else
				width = cGame_g.getStringWidth(TEXT.INGAME_RESULTS_RESULT_FOR + tegCountries[cCountry.selectedCountry].name + " VS. " + tegCountries[cCountry.defendingCountry].name) + cGame_g.getFontWidth() * 2;
				
			height = (((attackingDices.length < defendingDices.length)? defendingDices.length : attackingDices.length) * SPRITES.DICE_MODULE_H) + (2 * ((attackingDices.length > defendingDices.length)? defendingDices.length : attackingDices.length)) + cGame_g.getFontHeight() * 12;
		}
		
		#ifdef USE_DRAWRGB
		cGame_g.setColor(MENUS.MAIN_MENU_BACKGROUND_COLOR);
		cGame_g.drawAlphaRect(SCREEN_WIDTH / 2 - width / 2, SCREEN_HEIGHT / 2 - height / 2, width, height, MENUS.MAIN_MENU_ALPHA_LEVEL);
		#else
		cGame_g.setColor(MENUS.MAIN_MENU_BACKGROUND_COLOR);
		cGame_g.fillRect(SCREEN_WIDTH / 2 - width / 2, SCREEN_HEIGHT / 2 - height / 2, width, height);
		cGame_g.setColor(MENUS.MAIN_MENU_FOREGROUND_COLOR);
		cGame_g.drawRect(SCREEN_WIDTH / 2 - width / 2, SCREEN_HEIGHT / 2 - height / 2, width, height);
		#endif
		cGame_g.setColor(INGAME.TOKEN_BORDER_COLOR);
		cGame_g.drawRect(SCREEN_WIDTH / 2 - width / 2, SCREEN_HEIGHT / 2 - height / 2, width, height);
		
		cGame_g.setFontColor(MENUS.MAIN_MENU_HIGHLIGHT_COLOR);
		cGame_g.drawString(TEXT.INGAME_RESULTS_RESULT_FOR + tegCountries[cCountry.selectedCountry].name + " VS. " + tegCountries[cCountry.defendingCountry].name, SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2 - height / 2 + cGame_g.getFontHeight(), DSmallFont.TOP | DSmallFont.HCENTER);
		
		#ifndef REMOVE_IMAGES
		for(int i = 0; i < attackingDices.length; i++)
		{
			cGame_g.drawRegion(diceImg, SPRITES.DICE_MODULE_X[attackingDices[i] - 1], SPRITES.DICE_MODULE_Y, SPRITES.DICE_MODULE_W, SPRITES.DICE_MODULE_H, 0, SCREEN_WIDTH / 2 - SPRITES.DICE_MODULE_W - 1, SCREEN_HEIGHT / 2 - height / 2 + cGame_g.getFontHeight() * 3 + SPRITES.DICE_MODULE_H * i + 2 * i, 0);
		}
		
		for(int i = 0; i < defendingDices.length; i++)
		{
			cGame_g.drawRegion(diceImg, SPRITES.DICE_MODULE_X[defendingDices[i] - 1], SPRITES.DICE_MODULE_Y, SPRITES.DICE_MODULE_W, SPRITES.DICE_MODULE_H, 0, SCREEN_WIDTH / 2 + 1, SCREEN_HEIGHT / 2 - height / 2 + cGame_g.getFontHeight() * 3 + SPRITES.DICE_MODULE_H * i + 2 * i, 0);
		}
		#endif
		
			
		
		if(conqueredCountry)
		{
			if(tegCountries[cCountry.selectedCountry].armies - 1 <= 3)
				maxArmies = tegCountries[cCountry.selectedCountry].armies - 1;
			else
				maxArmies = 3;
				
			cGame_g.drawString(TEXT.INGAME_RESULTS_HOW_MANY, SCREEN_WIDTH / 2 - width / 2 + cGame_g.getFontWidth(), SCREEN_HEIGHT / 2 - height / 2 + cGame_g.getFontHeight() * 9 + SPRITES.DICE_MODULE_H * ((attackingDices.length > defendingDices.length)? attackingDices.length - 1 : defendingDices.length - 1) + 2 * ((attackingDices.length > defendingDices.length)? attackingDices.length : defendingDices.length), DSmallFont.LEFT | DSmallFont.TOP);
			
			for(int i = 0; i < maxArmies; i++)
			{
				cGame_g.drawString("(" + (i + 1) + ") " + TEXT.INGAME_RESULTS_ARMY, SCREEN_WIDTH / 2 - width / 2 + cGame_g.getFontWidth(), SCREEN_HEIGHT / 2 - height / 2 + cGame_g.getFontHeight() * 11 + SPRITES.DICE_MODULE_H * ((attackingDices.length > defendingDices.length)? attackingDices.length - 1 : defendingDices.length - 1) + 2 * ((attackingDices.length > defendingDices.length)? attackingDices.length : defendingDices.length) + cGame_g.getFontHeight() * i + 1 * i, DSmallFont.LEFT | DSmallFont.TOP);
			}
			
			if(isKeyPressed(KEYS.KEY_1))
			{
				tegCountries[cCountry.defendingCountry].armies = 1;
				tegCountries[cCountry.selectedCountry].armies -= 1;
				showBattleResults = false;
				conqueredCountry = false;
				clearKeys();
			}
			else if(isKeyPressed(KEYS.KEY_2) && maxArmies >= 2)
			{
				tegCountries[cCountry.defendingCountry].armies = 2;
				tegCountries[cCountry.selectedCountry].armies -= 2;
				showBattleResults = false;
				conqueredCountry = false;
				clearKeys();
			}
			else if(isKeyPressed(KEYS.KEY_3) && maxArmies == 3)
			{
				tegCountries[cCountry.defendingCountry].armies = 3;
				tegCountries[cCountry.selectedCountry].armies -= 3;
				showBattleResults = false;
				conqueredCountry = false;
				clearKeys();
			}
		}
		
		cGame_g.setFont(DGraph.FONT_BIG);
	}